3.78 \(\int \sec ^6(c+d x) (a+i a \tan (c+d x))^8 \, dx\)

Optimal. Leaf size=82 \[ -\frac{i (a+i a \tan (c+d x))^{13}}{13 a^5 d}+\frac{i (a+i a \tan (c+d x))^{12}}{3 a^4 d}-\frac{4 i (a+i a \tan (c+d x))^{11}}{11 a^3 d} \]

[Out]

(((-4*I)/11)*(a + I*a*Tan[c + d*x])^11)/(a^3*d) + ((I/3)*(a + I*a*Tan[c + d*x])^12)/(a^4*d) - ((I/13)*(a + I*a
*Tan[c + d*x])^13)/(a^5*d)

________________________________________________________________________________________

Rubi [A]  time = 0.0705574, antiderivative size = 82, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 24, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.083, Rules used = {3487, 43} \[ -\frac{i (a+i a \tan (c+d x))^{13}}{13 a^5 d}+\frac{i (a+i a \tan (c+d x))^{12}}{3 a^4 d}-\frac{4 i (a+i a \tan (c+d x))^{11}}{11 a^3 d} \]

Antiderivative was successfully verified.

[In]

Int[Sec[c + d*x]^6*(a + I*a*Tan[c + d*x])^8,x]

[Out]

(((-4*I)/11)*(a + I*a*Tan[c + d*x])^11)/(a^3*d) + ((I/3)*(a + I*a*Tan[c + d*x])^12)/(a^4*d) - ((I/13)*(a + I*a
*Tan[c + d*x])^13)/(a^5*d)

Rule 3487

Int[sec[(e_.) + (f_.)*(x_)]^(m_)*((a_) + (b_.)*tan[(e_.) + (f_.)*(x_)])^(n_), x_Symbol] :> Dist[1/(a^(m - 2)*b
*f), Subst[Int[(a - x)^(m/2 - 1)*(a + x)^(n + m/2 - 1), x], x, b*Tan[e + f*x]], x] /; FreeQ[{a, b, e, f, n}, x
] && EqQ[a^2 + b^2, 0] && IntegerQ[m/2]

Rule 43

Int[((a_.) + (b_.)*(x_))^(m_.)*((c_.) + (d_.)*(x_))^(n_.), x_Symbol] :> Int[ExpandIntegrand[(a + b*x)^m*(c + d
*x)^n, x], x] /; FreeQ[{a, b, c, d, n}, x] && NeQ[b*c - a*d, 0] && IGtQ[m, 0] && ( !IntegerQ[n] || (EqQ[c, 0]
&& LeQ[7*m + 4*n + 4, 0]) || LtQ[9*m + 5*(n + 1), 0] || GtQ[m + n + 2, 0])

Rubi steps

\begin{align*} \int \sec ^6(c+d x) (a+i a \tan (c+d x))^8 \, dx &=-\frac{i \operatorname{Subst}\left (\int (a-x)^2 (a+x)^{10} \, dx,x,i a \tan (c+d x)\right )}{a^5 d}\\ &=-\frac{i \operatorname{Subst}\left (\int \left (4 a^2 (a+x)^{10}-4 a (a+x)^{11}+(a+x)^{12}\right ) \, dx,x,i a \tan (c+d x)\right )}{a^5 d}\\ &=-\frac{4 i (a+i a \tan (c+d x))^{11}}{11 a^3 d}+\frac{i (a+i a \tan (c+d x))^{12}}{3 a^4 d}-\frac{i (a+i a \tan (c+d x))^{13}}{13 a^5 d}\\ \end{align*}

Mathematica [B]  time = 6.22252, size = 234, normalized size = 2.85 \[ \frac{a^8 \sec (c) \sec ^{13}(c+d x) (-1716 \sin (2 c+d x)+1287 \sin (2 c+3 d x)-1287 \sin (4 c+3 d x)+715 \sin (4 c+5 d x)-715 \sin (6 c+5 d x)+286 \sin (6 c+7 d x)-286 \sin (8 c+7 d x)+156 \sin (8 c+9 d x)+26 \sin (10 c+11 d x)+2 \sin (12 c+13 d x)+1716 i \cos (2 c+d x)+1287 i \cos (2 c+3 d x)+1287 i \cos (4 c+3 d x)+715 i \cos (4 c+5 d x)+715 i \cos (6 c+5 d x)+286 i \cos (6 c+7 d x)+286 i \cos (8 c+7 d x)+1716 \sin (d x)+1716 i \cos (d x))}{1716 d} \]

Antiderivative was successfully verified.

[In]

Integrate[Sec[c + d*x]^6*(a + I*a*Tan[c + d*x])^8,x]

[Out]

(a^8*Sec[c]*Sec[c + d*x]^13*((1716*I)*Cos[d*x] + (1716*I)*Cos[2*c + d*x] + (1287*I)*Cos[2*c + 3*d*x] + (1287*I
)*Cos[4*c + 3*d*x] + (715*I)*Cos[4*c + 5*d*x] + (715*I)*Cos[6*c + 5*d*x] + (286*I)*Cos[6*c + 7*d*x] + (286*I)*
Cos[8*c + 7*d*x] + 1716*Sin[d*x] - 1716*Sin[2*c + d*x] + 1287*Sin[2*c + 3*d*x] - 1287*Sin[4*c + 3*d*x] + 715*S
in[4*c + 5*d*x] - 715*Sin[6*c + 5*d*x] + 286*Sin[6*c + 7*d*x] - 286*Sin[8*c + 7*d*x] + 156*Sin[8*c + 9*d*x] +
26*Sin[10*c + 11*d*x] + 2*Sin[12*c + 13*d*x]))/(1716*d)

________________________________________________________________________________________

Maple [B]  time = 0.097, size = 475, normalized size = 5.8 \begin{align*} \text{result too large to display} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(sec(d*x+c)^6*(a+I*a*tan(d*x+c))^8,x)

[Out]

1/d*(a^8*(1/13*sin(d*x+c)^9/cos(d*x+c)^13+4/143*sin(d*x+c)^9/cos(d*x+c)^11+8/1287*sin(d*x+c)^9/cos(d*x+c)^9)+4
/3*I*a^8/cos(d*x+c)^6-28*a^8*(1/11*sin(d*x+c)^7/cos(d*x+c)^11+4/99*sin(d*x+c)^7/cos(d*x+c)^9+8/693*sin(d*x+c)^
7/cos(d*x+c)^7)+56*I*a^8*(1/10*sin(d*x+c)^6/cos(d*x+c)^10+1/20*sin(d*x+c)^6/cos(d*x+c)^8+1/60*sin(d*x+c)^6/cos
(d*x+c)^6)+70*a^8*(1/9*sin(d*x+c)^5/cos(d*x+c)^9+4/63*sin(d*x+c)^5/cos(d*x+c)^7+8/315*sin(d*x+c)^5/cos(d*x+c)^
5)-8*I*a^8*(1/12*sin(d*x+c)^8/cos(d*x+c)^12+1/30*sin(d*x+c)^8/cos(d*x+c)^10+1/120*sin(d*x+c)^8/cos(d*x+c)^8)-2
8*a^8*(1/7*sin(d*x+c)^3/cos(d*x+c)^7+4/35*sin(d*x+c)^3/cos(d*x+c)^5+8/105*sin(d*x+c)^3/cos(d*x+c)^3)-56*I*a^8*
(1/8*sin(d*x+c)^4/cos(d*x+c)^8+1/12*sin(d*x+c)^4/cos(d*x+c)^6+1/24*sin(d*x+c)^4/cos(d*x+c)^4)-a^8*(-8/15-1/5*s
ec(d*x+c)^4-4/15*sec(d*x+c)^2)*tan(d*x+c))

________________________________________________________________________________________

Maxima [B]  time = 1.1192, size = 234, normalized size = 2.85 \begin{align*} \frac{495 \, a^{8} \tan \left (d x + c\right )^{13} - 4290 i \, a^{8} \tan \left (d x + c\right )^{12} - 15210 \, a^{8} \tan \left (d x + c\right )^{11} + 25740 i \, a^{8} \tan \left (d x + c\right )^{10} + 10725 \, a^{8} \tan \left (d x + c\right )^{9} + 38610 i \, a^{8} \tan \left (d x + c\right )^{8} + 77220 \, a^{8} \tan \left (d x + c\right )^{7} - 51480 i \, a^{8} \tan \left (d x + c\right )^{6} + 19305 \, a^{8} \tan \left (d x + c\right )^{5} - 64350 i \, a^{8} \tan \left (d x + c\right )^{4} - 55770 \, a^{8} \tan \left (d x + c\right )^{3} + 25740 i \, a^{8} \tan \left (d x + c\right )^{2} + 6435 \, a^{8} \tan \left (d x + c\right )}{6435 \, d} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sec(d*x+c)^6*(a+I*a*tan(d*x+c))^8,x, algorithm="maxima")

[Out]

1/6435*(495*a^8*tan(d*x + c)^13 - 4290*I*a^8*tan(d*x + c)^12 - 15210*a^8*tan(d*x + c)^11 + 25740*I*a^8*tan(d*x
 + c)^10 + 10725*a^8*tan(d*x + c)^9 + 38610*I*a^8*tan(d*x + c)^8 + 77220*a^8*tan(d*x + c)^7 - 51480*I*a^8*tan(
d*x + c)^6 + 19305*a^8*tan(d*x + c)^5 - 64350*I*a^8*tan(d*x + c)^4 - 55770*a^8*tan(d*x + c)^3 + 25740*I*a^8*ta
n(d*x + c)^2 + 6435*a^8*tan(d*x + c))/d

________________________________________________________________________________________

Fricas [B]  time = 1.39586, size = 1041, normalized size = 12.7 \begin{align*} \frac{1171456 i \, a^{8} e^{\left (20 i \, d x + 20 i \, c\right )} + 2928640 i \, a^{8} e^{\left (18 i \, d x + 18 i \, c\right )} + 5271552 i \, a^{8} e^{\left (16 i \, d x + 16 i \, c\right )} + 7028736 i \, a^{8} e^{\left (14 i \, d x + 14 i \, c\right )} + 7028736 i \, a^{8} e^{\left (12 i \, d x + 12 i \, c\right )} + 5271552 i \, a^{8} e^{\left (10 i \, d x + 10 i \, c\right )} + 2928640 i \, a^{8} e^{\left (8 i \, d x + 8 i \, c\right )} + 1171456 i \, a^{8} e^{\left (6 i \, d x + 6 i \, c\right )} + 319488 i \, a^{8} e^{\left (4 i \, d x + 4 i \, c\right )} + 53248 i \, a^{8} e^{\left (2 i \, d x + 2 i \, c\right )} + 4096 i \, a^{8}}{429 \,{\left (d e^{\left (26 i \, d x + 26 i \, c\right )} + 13 \, d e^{\left (24 i \, d x + 24 i \, c\right )} + 78 \, d e^{\left (22 i \, d x + 22 i \, c\right )} + 286 \, d e^{\left (20 i \, d x + 20 i \, c\right )} + 715 \, d e^{\left (18 i \, d x + 18 i \, c\right )} + 1287 \, d e^{\left (16 i \, d x + 16 i \, c\right )} + 1716 \, d e^{\left (14 i \, d x + 14 i \, c\right )} + 1716 \, d e^{\left (12 i \, d x + 12 i \, c\right )} + 1287 \, d e^{\left (10 i \, d x + 10 i \, c\right )} + 715 \, d e^{\left (8 i \, d x + 8 i \, c\right )} + 286 \, d e^{\left (6 i \, d x + 6 i \, c\right )} + 78 \, d e^{\left (4 i \, d x + 4 i \, c\right )} + 13 \, d e^{\left (2 i \, d x + 2 i \, c\right )} + d\right )}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sec(d*x+c)^6*(a+I*a*tan(d*x+c))^8,x, algorithm="fricas")

[Out]

1/429*(1171456*I*a^8*e^(20*I*d*x + 20*I*c) + 2928640*I*a^8*e^(18*I*d*x + 18*I*c) + 5271552*I*a^8*e^(16*I*d*x +
 16*I*c) + 7028736*I*a^8*e^(14*I*d*x + 14*I*c) + 7028736*I*a^8*e^(12*I*d*x + 12*I*c) + 5271552*I*a^8*e^(10*I*d
*x + 10*I*c) + 2928640*I*a^8*e^(8*I*d*x + 8*I*c) + 1171456*I*a^8*e^(6*I*d*x + 6*I*c) + 319488*I*a^8*e^(4*I*d*x
 + 4*I*c) + 53248*I*a^8*e^(2*I*d*x + 2*I*c) + 4096*I*a^8)/(d*e^(26*I*d*x + 26*I*c) + 13*d*e^(24*I*d*x + 24*I*c
) + 78*d*e^(22*I*d*x + 22*I*c) + 286*d*e^(20*I*d*x + 20*I*c) + 715*d*e^(18*I*d*x + 18*I*c) + 1287*d*e^(16*I*d*
x + 16*I*c) + 1716*d*e^(14*I*d*x + 14*I*c) + 1716*d*e^(12*I*d*x + 12*I*c) + 1287*d*e^(10*I*d*x + 10*I*c) + 715
*d*e^(8*I*d*x + 8*I*c) + 286*d*e^(6*I*d*x + 6*I*c) + 78*d*e^(4*I*d*x + 4*I*c) + 13*d*e^(2*I*d*x + 2*I*c) + d)

________________________________________________________________________________________

Sympy [F(-1)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sec(d*x+c)**6*(a+I*a*tan(d*x+c))**8,x)

[Out]

Timed out

________________________________________________________________________________________

Giac [B]  time = 1.76486, size = 234, normalized size = 2.85 \begin{align*} \frac{33 \, a^{8} \tan \left (d x + c\right )^{13} - 286 i \, a^{8} \tan \left (d x + c\right )^{12} - 1014 \, a^{8} \tan \left (d x + c\right )^{11} + 1716 i \, a^{8} \tan \left (d x + c\right )^{10} + 715 \, a^{8} \tan \left (d x + c\right )^{9} + 2574 i \, a^{8} \tan \left (d x + c\right )^{8} + 5148 \, a^{8} \tan \left (d x + c\right )^{7} - 3432 i \, a^{8} \tan \left (d x + c\right )^{6} + 1287 \, a^{8} \tan \left (d x + c\right )^{5} - 4290 i \, a^{8} \tan \left (d x + c\right )^{4} - 3718 \, a^{8} \tan \left (d x + c\right )^{3} + 1716 i \, a^{8} \tan \left (d x + c\right )^{2} + 429 \, a^{8} \tan \left (d x + c\right )}{429 \, d} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sec(d*x+c)^6*(a+I*a*tan(d*x+c))^8,x, algorithm="giac")

[Out]

1/429*(33*a^8*tan(d*x + c)^13 - 286*I*a^8*tan(d*x + c)^12 - 1014*a^8*tan(d*x + c)^11 + 1716*I*a^8*tan(d*x + c)
^10 + 715*a^8*tan(d*x + c)^9 + 2574*I*a^8*tan(d*x + c)^8 + 5148*a^8*tan(d*x + c)^7 - 3432*I*a^8*tan(d*x + c)^6
 + 1287*a^8*tan(d*x + c)^5 - 4290*I*a^8*tan(d*x + c)^4 - 3718*a^8*tan(d*x + c)^3 + 1716*I*a^8*tan(d*x + c)^2 +
 429*a^8*tan(d*x + c))/d